package top.lyc829.days.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.lang.Nullable;
import top.lyc829.days.bean.User;

public interface UserDao extends JpaRepository<User, Integer> {

    @Nullable
    User findByUsername(String userName);

    User findByUsernameAndPassword(String username, String password);

}
